<title>Edit User Type - RSMK</title>
<script type="text/javascript">
	jQuery(Document).ready(function(){
		//binds form submission and fields to the validation engine
		jQuery('#frm').validationEngine('attach', {promptPosition : "centerRight"});
		
	});
</script>
<?php $form=$this->form;?>
<style>
fieldset.fifthy {	
	border-right: 0px;
	width: 50%;
}
table.user td{
	vertical-align: top;  
}
</style> 
<br/>
<?php 
$cancel_url=$this->url(array(
		'module'=>'userWu',
		'controller'=>'user-type',
		'action'=>'index',
	));
$tr = Application_Form_FrmLanguages::getCurrentlanguage();
?>

<div class="right" style="width: 97%; padding: 10px;">
<form id="frm" action="<?php echo $form->getAction(); ?>" method="post" enctype="application/x-www-form-urlencoded" >
	<div class="btn" align="right">
			    <button name="save" class="positive" type="submit">
			        <img alt="" src="<?php echo BASE_URL?>/images/icon/apply2.png">
			        <?php echo $tr->translate('SAVE');?>
			    </button>												   						
			    <a class="negative" href="<?php echo $cancel_url;?>">
			        <img alt="" src="<?php echo BASE_URL?>/images/icon/cross.png">
			        <?php echo $tr->translate('CANCEL');?>
			    </a>
	</div>
	<div class="view-table">
		<div class="head_form">
			<?php echo $tr->translate('USER_TYPE');?>
		</div>
		<div class="contain_form shadow">
			<table>
				<tr>
					<td><?php echo $tr->translate('USER_TYPE');?></td>
					<td><?php echo $form->getElement('user_type');?></td>				
				</tr>
				<tr>
					<td><?php echo $tr->translate('PARENT_TYPE') ." ". $tr->translate('NAME');?></td>
					<td><?php echo $form->getElement('parent_id');?></td>				
				</tr>							
			</table>
		</div>
	</div>
</form>
</div>